package com.bright.ghj.stats.web.controller;

import com.bright.ghj.stats.result.Result;
import com.bright.ghj.stats.service.impl.TestServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@Api(tags = "hxj测试接口")
@RestController
@RequestMapping("/hxj")
@Validated
@RequiredArgsConstructor
public class TestController {

    private final TestServiceImpl testService;


    @ApiOperation(value = "测试存储过程接口")
    @GetMapping("/testProc")
    public Result testProc(HttpServletResponse response) {


        System.out.println("hxj测试方法打印------------------");

        testService.testProc();

        return Result.success("OK");
    }

}
